<style>
   .mokuaix{height: 18px;overflow: hidden;}
</style>
<main id="main-container" >
<script>
    var h = document.documentElement.clientHeight;
    $("#main-container").css('min-height',h-120);

</script>
    <div class="content content-boxed">
    <div class="row">
    <div><div><div>
{if $moudles}
{if $enable_modules}
<style>.table {
    table-layout: auto;
}</style>
<div class="block bshadow">
<div class="content bg-white" id="jying">
<div class="row" style="min-height:800px;">
<div class="col-xs-12 col-sm-6 col-lg-12">
<div class="page-header" style="margin-top:15px">
    <h4><i class="{$snav_icon}"></i> 全部模块</h4>
</div>
{if $moudles}
{if $enable_modules}
{loop $enable_modules $key $row}
    {if empty($current_user_permission_types) || in_array($key, $current_user_permission_types) || $row['issystem'] == 1}

<div class="col-xs-6 col-sm-6 col-lg-2" style="text-align: center;margin-bottom: 10px;">
    <a class="item item-circle text-white-op center-block"  href="{if $row['type'] != 'system'}./index.php?c=home&a=welcome&do=ext{else}./index.php?c=platform&a=reply{/if}&m={$row['name']}">

        <img src="{$row['icon']}" alt="{$row['title']}" class="img-avatar" />

    </a>
    <div class="push-10-t font-w600">{$row['title']}</div>
</div>
{/if}

{/loop}
{/if}
{/if}

</div>
</div></div>

{/if}

{else}
 <div class="col-sm-6 col-lg-12">
<div class="col-sm-6 col-lg-9 pcha1">
<div class="block bshadow">
<div class="content bg-white">
<div class="page-header">
  <h4><i class="fa fa-plane"></i> 核心功能设置</h4>
</div>
<div class="content bg-white">
    <div class="row items-push text-center">
      {if $entries['cover']}
      {loop $entries['cover'] $cover}
      <?php
      switch ($cover['title']) {
      case '订单入口':
      $cover_icon = 'fa fa-list';
      break;
      case '商城入口':
      $cover_icon = 'fa fa-angle-double-right';
      break;
      case '商城入口设置':
      $cover_icon = 'fa fa-angle-double-right';
      break;
      case '购物车入口':
      $cover_icon = 'fa fa-shopping-cart';
      break;
      case '我的收藏入口':
      $cover_icon = 'fa fa-star';
      break;
      case '会员中心入口':
      $cover_icon = 'fa fa-user';
      break;
      case '下线排行榜':
      $cover_icon = 'fa fa-list-ol';
      break;
      case '积分排行榜':
      $cover_icon = 'fa fa-list';
      break;
      case '我的拉人积分':
      $cover_icon = 'fa fa-foursquare';
      break;
      case '我的推广效果':
      $cover_icon = 'fa fa-gratipay';
      break;
      default:
      $cover_icon = 'fa fa-home';
  }
  ?>
  <div class="col-xs-6 col-sm-6 col-lg-2">
    <a class="item item-circle bg-default text-white-op center-block" data-toggle="theme" data-theme="default" href="{$cover['url']}" title="{$cover['title']}" style="width: 60px;height: 60px;font-size: 28px;font-weight: 300;line-height: 58px;">
        <i class="{$cover_icon}"></i>
    </a>
    <div class="push-10-t font-w600 mokuaix">{$cover['title']}</div>
</div>

{/loop}
{/if}
{if $module['isrulefields']}
<div class="col-xs-6 col-sm-6 col-lg-2">
    <a class="item item-circle bg-default text-white-op center-block" data-toggle="theme" data-theme="default" href="{php echo url('platform/reply', array('m' => $m))}" style="width: 60px;height: 60px;font-size: 28px;font-weight: 300;line-height: 58px;">
        <i class="fa fa-comments"></i>
    </a>
    <div class="push-10-t font-w600 mokuaix">回复规则列表</div>
</div>
{/if}
{if $entries['home'] || $entries['profile'] || $entries['shortcut']}
{if $entries['home']}
<div class="col-xs-6 col-sm-6 col-lg-2">
    <a class="item item-circle bg-default text-white-op center-block" data-toggle="theme" data-theme="default" href="{php echo url('site/nav/home', array('m' => $m))}" style="width: 60px;height: 60px;font-size: 28px;font-weight: 300;line-height: 58px;">
        <i class="fa fa-home"></i>
    </a>
    <div class="push-10-t font-w600 mokuaix">微站首页导航</div>
</div>
{/if}
{if $entries['profile']}
<div class="col-xs-6 col-sm-6 col-lg-2">
    <a class="item item-circle bg-default text-white-op center-block" data-toggle="theme" data-theme="default" href="{php echo url('site/nav/profile', array('m' => $m))}" style="width: 60px;height: 60px;font-size: 28px;font-weight: 300;line-height: 58px;">
        <i class="fa fa-user"></i>
    </a>
    <div class="push-10-t font-w600 mokuaix">个人中心导航</div>
</div>
{/if}
{if $entries['shortcut']}
<div class="col-xs-6 col-sm-6 col-lg-2">
    <a class="item item-circle bg-default text-white-op center-block" data-toggle="theme" data-theme="default" href="{php echo url('site/nav/shortcut', array('m' => $m))}" style="width: 60px;height: 60px;font-size: 28px;font-weight: 300;line-height: 58px;">
        <i class="fa fa-plane"></i>
    </a>
    <div class="push-10-t font-w600 mokuaix">快捷菜单</div>
</div>
{/if}
{/if}
{if $module['settings']}
<div class="col-xs-6 col-sm-6 col-lg-2">
    <a class="item item-circle bg-default text-white-op center-block" data-toggle="theme" data-theme="default" href="{url 'profile/module/setting' array('m' => $m)}" style="width: 60px;height: 60px;font-size: 28px;font-weight: 300;line-height: 58px;">
        <i class="fa fa-cog"></i>
    </a>
    <div class="push-10-t font-w600 mokuaix">参数设置</div>
</div>
{/if}
</div></div>
{if $entries['menu']}
<div class="page-header">
  <h4><i class="fa fa-plane"></i> 业务功能菜单</h4>
</div>
<div class="content bg-white">
    <div class="row items-push text-center">
      {loop $entries['menu'] $menu}
      <?php
      switch ($menu['title']) {
      case '商城管理':
      $menu_icon = 'fa fa-cog';
      break;
      case '会员管理':
      $menu_icon = 'fa fa-users';
      break;
      case '订单管理':
      $menu_icon = 'fa fa-list-alt';
      break;
      case '数据统计':
      $menu_icon = 'fa fa-line-chart';
      break;
      case '插件中心':
      $menu_icon = 'fa fa-cubes';
      break;
      case '系统设置':
      $menu_icon = 'fa fa-cogs';
      break;
      case '商品管理':
      $menu_icon = 'fa fa-apple';
      break;
      case '商品分类':
      $menu_icon = 'fa fa-th';
      break;
      case '物流模板':
      $menu_icon = 'fa fa-truck';
      break;
      case '物流管理':
      $menu_icon = 'fa fa-truck';
      break;
      case '配送方式':
      $menu_icon = 'fa fa-check-square-o';
      break;
      case '维权与告警':
      $menu_icon = 'fa fa-exclamation-triangle';
      break;
      case '业绩报表':
      $menu_icon = 'fa fa-pie-chart';
      break;
      case '幻灯片管理':
      $menu_icon = 'fa fa-television';
      break;
      case '取现模板管理':
      $menu_icon = 'fa fa-money';
      break;
      case '取现请求管理':
      $menu_icon = 'fa fa-jpy';
      break;
      case '传单管理':
      $menu_icon = 'fa fa-file-text-o';
      break;
      case '黑名单':
      $menu_icon = 'fa fa-file-text';
      break;
      case '排行榜':
      $menu_icon = 'fa fa-trophy';
      break;
      case '会员列表':
      $menu_icon = 'fa fa-users';
      break;
      case '查看日志':
      $menu_icon = 'fa fa-file-text-o';
      break;
      case '分销管理':
      $menu_icon = 'fa fa-code-fork';
      break;
      case '返利记录':
      $menu_icon = 'fa fa-file-text-o';
      break;
      case '消息通知':
      $menu_icon = 'fa fa-bell';
      break;
      case '兑换模板管理':
      $menu_icon = 'fa fa-puzzle-piece';
      break;
      case '兑换请求管理':
      $menu_icon = 'fa fa-wrench';
      break;
      case '菜单中心':
      $menu_icon = 'fa fa-list-ul';
      break;
      case '管理面板':
      $menu_icon = 'fa fa-tachometer';
      break;
      default:
      $menu_icon = 'fa fa-commenting-o';
  }
  ?>
  <div class="col-xs-6 col-sm-6 col-lg-2">
    <a class="item item-circle bg-default text-white-op center-block" data-toggle="theme" data-theme="default" href="{$menu['url']}" title="{$menu['title']}" style="width: 60px;height: 60px;font-size: 28px;font-weight: 300;line-height: 58px;">
			<i class="{$menu['icon']}"></i>
    </a>
    <div class="push-10-t font-w600 mokuaix">{$menu['title']}</div>
</div>
{/loop}
</div></div>
{/if}
{if $entries['mine']}
<div class="page-header">
  <h4><i class="fa fa-plane"></i> 自定义菜单</h4>
</div>
<div class="content bg-white">
    <div class="row items-push text-center">
      {loop $entries['mine'] $mine}
      <div class="col-xs-6 col-sm-6 col-lg-2">
        <a class="item item-circle bg-default text-white-op center-block"  href="{$mine['url']}" title="{$mine['title']}" style="width: 60px;height: 60px;font-size: 28px;font-weight: 300;line-height: 58px;">
            <i class="{$mine['icon']}"></i>
        </a>
        <div class="push-10-t font-w600 mokuaix">{$mine['title']}</div>
    </div>
    {/loop}
</div>	</div>
{/if}


</div></div></div>
<div class="col-sm-6 col-lg-3">

    <div class="row xwii">

    <!-- Block Tabs Justified Alternative Style -->
    <div class="block bshadow">
        <ul class="nav nav-tabs nav-tabs-alt nav-justified" data-toggle="tabs">
            <li class="active">
                <a href="#btabs-alt-static-justified-home">快捷方式</a>
            </li>
            <li>
                <a href="{php echo url('home/welcome/ext')}">更多->></a>
            </li>
        </ul>
        <div class="block-content tab-content">
            <div class="tab-pane active" id="btabs-alt-static-justified-home">
                <ul class="nav-users push" id="exta">
                    <li style="line-height: 35px;">
                        <a href="{php echo url('platform/reply', array('m' => 'userapi'))}">
                            <img class="img-avatar" src="resource/qincewang/img/1111.jpg" alt="">自定义接口
                        </a>
                    </li>
                    {loop $shortcuts $shortcut}
                    <li style="line-height: 35px;">
                        <a href="{$shortcut['link']}">
                            <img class="img-avatar" src="{$shortcut['image']}" alt="">
                           {$shortcut['title']}
                        </a>
                    </li>
                    {/loop}
                </ul>
            </div>
        </div>
    </div>
    <!-- END Block Tabs Justified Default Style -->


    </div>

</div>
</div>
</div>{/if}
<script type="text/javascript">
<!--
	{if $_W['isfounder']}
	function checkupgradeModule() {
		require(['util'], function(util) {
			if (util.cookie.get('checkupgrade_{$m}')) {
				return;
			}
			$.getJSON("{url 'utility/checkupgrade/module' array('m' => $m)}", function(ret) {
				if (ret.message.errno == -10) {
					$('body').prepend('<div id="upgrade-tips-module" class="upgrade-tips"><a href="http://wpa.b.qq.com/cgi/wpa.php?ln=1&key=XzkzODAwMzEzOV8xNzEwOTZfNDAwMDgyODUwMl8yXw" target="_blank">' + ret.message.message + '</a></div>');
					if ($('#upgrade-tips').size()) {
						$('#upgrade-tips-module').css('top', '25px');
					}
				} else if (ret && ret.message && ret.message.upgrade == '1') {
					$('body').prepend('<div id="upgrade-tips-module" class="upgrade-tips"><a class="module" href="./index.php?c=extension&a=module&">【'+ret.message.name+'】检测到新版本'+ret.message.version+'，请尽快更新！</a><span class="tips-close" onclick="checkupgradeModule_hide()"><i class="fa fa-times-circle"></i></span></div>');
					if ($('#upgrade-tips').size()) {
						$('#upgrade-tips-module').css('top', '25px');
					}
				}
			});
		});
	}
	function checkupgradeModule_hide() {
		require(['util'], function(util) {
			util.cookie.set('checkupgrade_{$m}', 1, 3600);
			$('#upgrade-tips-module').hide();
		});
	}
	$(function(){
		checkupgradeModule();
	});
	{/if}
//-->
</script>
